package me.zxk.smartagriculture.dto.user;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 修改密码请求DTO
 */
@Data
public class ChangePasswordRequest {

    @NotBlank(message = "当前密码不能为空")
    @Size(min = 32, max = 32, message = "当前密码MD5长度必须为32位")
    private String currentPasswordMd5;

    @NotBlank(message = "新密码不能为空")
    @Size(min = 32, max = 32, message = "新密码MD5长度必须为32位")
    private String newPasswordMd5;
}
